package com.flymobi.mshop.activity;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.flymobi.mshop.R;

public class More extends Common {

	private TextView title;
	private RelativeLayout menu_search, menu_history, menu_setup, menu_help,
			menu_feedback, menu_about, menu_version, menu_exit;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.more);
		title = (TextView) findViewById(R.id.titleText);
		title.setText("更多");
		IniView();
		setListener();
	}

	public void IniView() {
		menu_search = (RelativeLayout) findViewById(R.id.menu_search);
		menu_history = (RelativeLayout) findViewById(R.id.menu_history);
		menu_setup = (RelativeLayout) findViewById(R.id.menu_setup);
		menu_help = (RelativeLayout) findViewById(R.id.menu_help);
		menu_feedback = (RelativeLayout) findViewById(R.id.menu_feedback);
		menu_about = (RelativeLayout) findViewById(R.id.menu_about);
		menu_version = (RelativeLayout) findViewById(R.id.menu_version);
		menu_exit = (RelativeLayout) findViewById(R.id.menu_exit);

	}

	public void setListener() {
		menu_search.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				forwardZoom(Search.class);
			}
		});
		
		menu_history.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				forwardZoom(ViewHistory.class);
			}
		});
		
		menu_setup.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				forwardZoom(Setting.class);
			}
		});
		
		menu_help.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				forwardZoom(Help.class);
			}
		});
		
		menu_feedback.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				forwardZoom(feedback.class);
			}
		});
		
		menu_about.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				forwardZoom(About.class);
			}
		});
		
		menu_version.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
			//	forwardZoom(Search.class);
			}
		});
		
		menu_exit.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
			}
		});
		
	
		
		
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean onDown(MotionEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onLongPress(MotionEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
			float distanceY) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onShowPress(MotionEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean onSingleTapUp(MotionEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;
	}
}
